/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.businessobject;

import ticketmaster.common.CardType;

/**
 *
 * @author Wei Liu
 */
public class CreditCardType
{
    private CardType type;
    private String name;

    public CreditCardType(CardType type, String name)
    {
        this.type = type;
        this.name = name;
    }

    /**
     * @return the type
     */
    public CardType getType()
    {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(CardType type)
    {
        this.type = type;
    }

    /**
     * @return the name
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name)
    {
        this.name = name;
    }

    public String toString()
    {
        return name;
    }
}
